<?php /**/ ?><?php // $Id: page.tpl.php,v 1.15.4.7 2008/12/23 03:40:02 designerbrent Exp $ ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"  xmlns:fb="http://www.facebook.com/2008/fbml">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php print $language->language ?>" lang="<?php print $language->language ?>">
<head>
	<title><?php print $head_title ?></title>
	<meta http-equiv="content-language" content="<?php print $language->language ?>" />
	<?php print $meta; ?>
	<meta name="google-site-verification" content="PEV0kKG_RnqS1tsQ3tbWItivZPgWjQ_KxxrLcGjLXSc" />
  <?php print $head; ?>
  <?php print $styles; ?>
  <!--[if lte IE 7]>
    <link rel="stylesheet" href="<?php print $path; ?>blueprint/blueprint/ie.css" type="text/css" media="screen, projection">
  	<link href="<?php print $path; ?>css/ie.css" rel="stylesheet"  type="text/css"  media="screen, projection" />
  <![endif]-->  
  <!--[if lte IE 6]>
  	<link href="<?php print $path; ?>css/ie6.css" rel="stylesheet"  type="text/css"  media="screen, projection" />
		<script type="text/javascript"> 
			/*Load jQuery if not already loaded*/ if(typeof jQuery == 'undefined'){ document.write("<script type=\"text/javascript\"   src=\"http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js\"></"+"script>"); var __noconflict = true; } 
			var IE6UPDATE_OPTIONS = {
				icons_path: "<?php print $path; ?>ie6update/images/"
			}
		</script>
		<script type="text/javascript" src="<?php print $path; ?>ie6update/ie6update.js"></script>
  <![endif]-->  
</head>

<body class="<?php print $body_classes; ?>">

<div id="ie6"><p>This site is not supported for Internet Explorer 6.  It might look funny or even not function properly if you are using this browser.<br />You upgrade Flash as soon as they get a new version. Why not get an updated browser?<br />Try <a href="http://getfirefox.com">Firefox</a>, <a href="http://google.com/chrome">Chrome</a> or if you love and breath Microsoft than <a href="http://www.microsoft.com/windows/downloads/ie/getitnow.mspx">IE7</a>.</p></div>

<div class="container">
  <div id="header">
    
              <?php
          // Prepare header
          $site_fields = array();
          if ($site_name) {
            $site_fields[] = check_plain($site_name);
          }
          if ($site_slogan) {
            $site_fields[] = check_plain($site_slogan);
          }
          $site_title = implode(' ', $site_fields);
          if ($site_fields) {
            $site_fields[0] = '<span>'. $site_fields[0] .'</span>';
          }
          $site_html = implode(' ', $site_fields);

          if ($logo || $site_title) {
            print '<h1 id="logo"><a href="'. check_url($front_page) .'" title="'. $site_title .'">';
            if ($logo) {
              print '<img src="'. check_url($logo) .'" alt="'. $site_title .'" id="logo" />';
            }
            print $site_html .'</a></h1>';
          }
        ?>
	  

    
    <?php print $header; ?>
	
	<div id="header_backgroundimage">
	<div id="header_backgroundcover">
		<div id="loginblock">
			<ul>
				<?php
				if (!$user->uid) {
					print '<li>'.l('Login', 'user/login' ,array('query' => drupal_get_destination()) ).'</li>';
					print '<li>|</li>';
					
					print '<li>'.l('Register', 'user/register', array('query' => drupal_get_destination())).'</li>';
					//print '<li>|</li>';
					
					
				}
				else {
					print '<li>'.l($user->name,'user').'</li>
							<li>|</li>
							<li>'.l('Logout','logout', array('query' => drupal_get_destination())).'</li>';
					}
				

				?>
				
			</ul>
			<?
				if (!$user->uid && function_exists('fbconnect_render_button')) {
					print '<div class="fbconnect">'.fbconnect_render_button().'</div>';		
				}
				?>
		</div>
		
		<?php print $headerlinks; ?>
		<!--<?php if (isset($primary_links)) : ?>
		  <?php print theme('links', $primary_links, array('id' => 'nav', 'class' => 'links')) ?>
		<?php endif; ?>
		<?php if (isset($secondary_links)) : ?>
		  <?php print theme('links', $secondary_links, array('id' => 'subnav', 'class' => 'links')) ?>
		<?php endif; ?>    -->
	</div>
		<?php print $headerimg; ?>
	</div>
  </div>
  <div id="centercontent_container">
  <div id="centercontent_wrapper">
  <?php if ($left): ?>
    <div class="<?php print $left_classes; ?>"><?php print $left; ?></div>
  <?php endif ?>
  
  <div class="<?php print $center_classes; ?>">
    <?php
      if ($breadcrumb != '') {
        print $breadcrumb;
      }

      if ($tabs != '') {
        print '<div class="tabs">'. $tabs .'</div>';
      }

      if ($messages != '') {
        print '<div id="messages">'. $messages .'</div>';
      }
      
      if ($title != '') {
        print '<h2>'. $title .'</h2>';
      }      

      print $help; // Drupal already wraps this one in a class      

      print $content;
      print $feed_icons;
    ?>
	<?php if ($content_footer): ?>
		<div class="content_footer_wrapper">
		<div class="content_footer">
		<?php print $content_footer; ?>
		</div></div>
	
	
	<?php endif; ?>
    
  </div>

  <?php if ($right): ?>
    <div class="<?php print $right_classes; ?>"><?php print $right; ?></div>
  <?php endif ?>
  <div class="clearboth"></div>

	</div>
	</div>
  	<?php if ($footer_message | $footer): ?>
      <div id="footer" class="clear">
        <?php if ($footer): ?>
          <?php print $footer; ?>
        <?php endif; ?>
        <?php if ($footer_message): ?>
          <div id="footer-message"><?php print $footer_message; ?></div>
        <?php endif; ?>
      </div>
    <?php endif; ?>
	

  <?php print $scripts ?>
  <?php print $closure; ?>
<div class="clearboth"></div>
</div>
<div class="clearboth"></div>


</body>
</html>
